efi: Add an EFI signature blob parser
authorDave Howells <dhowells@redhat.com>
Fri, 5 May 2017 07:21:58 +0000 (08:21 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 15 May 2019 22:07:16 +0000 (23:07 +0100)
commit89f71d31fe858203e58c3768bb61fddb3036e860
treec48f7ecd6cbd27e9a4510b2df7c202cd217922a8
parenta423c8b74e1a42f20f607161188bf51b88d8ca84
efi: Add an EFI signature blob parser

Add a function to parse an EFI signature blob looking for elements of
interest.  A list is made up of a series of sublists, where all the
elements in a sublist are of the same type, but sublists can be of
different types.

For each sublist encountered, the function pointed to by the
get_handler_for_guid argument is called with the type specifier GUID and
returns either a pointer to a function to handle elements of that type or
NULL if the type is not of interest.

If the sublist is of interest, each element is passed to the handler
function in turn.

Signed-off-by: David Howells <dhowells@redhat.com>
Gbp-Pq: Topic features/all/db-mok-keyring
Gbp-Pq: Name 0003-efi-Add-an-EFI-signature-blob-parser.patch
certs/Kconfig
certs/Makefile
certs/efi_parser.c [new file with mode: 0644]
include/linux/efi.h